package cn.stylefeng.guns.modular.business.frequency.orderbonus.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 奖金记录表(activityMq异步处理)
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_order_bonus")
public class OrderBonus extends BaseEntity {

    /**
     * ID
     */
    @TableId("id")
    private String id;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 类型：1.制单 2.提车 4.发车 5.交付
     */
    @TableField("type")
    private Integer type;

    /**
     * 状态：1.未生效 2.有效 3.无效
     */
    @TableField("status")
    private Integer status;

    /**
     * 金额
     */
    @TableField("fee")
    private BigDecimal fee;

    /**
     * user_id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 生效时间
     */
    @TableField("effect_time")
    private Date effectTime;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;
}
